﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/stepInOutPut/stepInOutPut"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="stepInOutPut"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>

          %{--  <label>封装形式：</label>--}%
            %{--<input name='RESERVED1' value="${RESERVED1}" size="18"/>--}%
            %{--<g:select id="mode" name="RESERVED1" from="${packageForm}" data-toggle="selectpicker" data-width="150"
                      data-live-search="true" optionKey="RESERVED1" optionValue="RESERVED1" value="${RESERVED1}"
                      noSelection="['': '--ALL--']"/>--}%
            <label>开始时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd 13:mm:ss"
                   size="18" id="start-date-input" readonly value="${startTime.format('yyyy-MM-dd 13:mm:ss')}">&nbsp;
            <label>结束时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd 13:mm:ss"
                   size="18" id="end-date-input" readonly value="${endTime.format('yyyy-MM-dd 13:mm:ss')}">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/stepInOutPut/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出Excel文件</button>&nbsp;
        </div>
    </form>
</div>

<div style="margin:10px auto 0; width:100%;">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <td  width="95" align="center" name="ageShow">TO-252</td>
                <th  width="95"  align="center">DS</th>
                <th  width="95" align="center">DB</th>
                <th  width="95"  align="center">WB1</th>
                <th  width="95" align="center">WB2</th>
                <th  width="95" align="center">MOLD</th>
                <th  width="95"  align="center">PMC</th>
                <th  width="95"  align="center">Plating</th>
                <th  width="95" align="center">T&F</th>
                <th  width="95"  align="center">TEST</th>
                <th  width="95"  align="center">外观</th>
                <th  width="95" align="center">包装</th>
                <th  width="95" align="center">FIN</th>
                <th  width="95" align="center">入库</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${stepInOutPut1}" status="i" var="tableInstance1">
                <tr>
                    <td align="center" width="95">期初在制</td>
                    <td align="center" width="95">${tableInstance1.DS}</td>
                    <td align="center" width="95">${tableInstance1.DB}</td>
                    <td align="center" width="95">${tableInstance1.WB1}</td>
                    <td align="center" width="95">${tableInstance1.WB2}</td>
                    <td align="center" width="95">${tableInstance1.MOLD}</td>
                    <td align="center" width="95">${tableInstance1.PMC}</td>
                    <td align="center" width="95">${tableInstance1.PLATING}</td>
                    <td align="center" width="95">${tableInstance1.TF}</td>
                    <td align="center" width="95">${tableInstance1.TEST}</td>
                    <td align="center" width="95">${tableInstance1.INSPECTION}</td>
                    <td align="center" width="95">${tableInstance1.PACKING}</td>
                  <td align="center" width="95">${tableInstance1.FIN}</td>
                    <td align="center" width="95"></td>
                </tr>
            </g:each>
            <g:each in="${stepInOutPut4}" status="w" var="tableInstance4">
                <tr>
                <td align="center" width="95">前道转入</td>
                <td align="center" width="95">${tableInstance4.DS}</td>
                <td align="center" width="95">${tableInstance4.DB}</td>
                <td align="center" width="95">${tableInstance4.WB1}</td>
                <td align="center" width="95">${tableInstance4.WB2}</td>
                <td align="center" width="95">${tableInstance4.MOLD}</td>
                <td align="center" width="95">${tableInstance4.PMC}</td>
                <td align="center" width="95">${tableInstance4.PLATING}</td>
                <td align="center" width="95">${tableInstance4.TF}</td>
                <td align="center" width="95">${tableInstance4.TEST}</td>
                <td align="center" width="95">${tableInstance4.INSPECTION}</td>
                <td align="center" width="95">${tableInstance4.PACKING}</td>
                <td align="center" width="95">${tableInstance4.last}</td>
                <td align="center" width="95">${tableInstance4.GOOD_QTY}</td>
            </g:each>
            <g:each in="${stepInOutPut3}" status="w" var="tableInstance3">
                <tr>
                <td align="center" width="95">产出</td>
                <td align="center" width="95">${tableInstance3.DS}</td>
                <td align="center" width="95">${tableInstance3.DB}</td>
                <td align="center" width="95">${tableInstance3.WB1}</td>
                <td align="center" width="95">${tableInstance3.WB2}</td>
                <td align="center" width="95">${tableInstance3.MOLD}</td>
                <td align="center" width="95">${tableInstance3.PMC}</td>
                <td align="center" width="95">${tableInstance3.PLATING}</td>
                <td align="center" width="95">${tableInstance3.TF}</td>
                <td align="center" width="95">${tableInstance3.TEST}</td>
                <td align="center" width="95">${tableInstance3.INSPECTION}</td>
                <td align="center" width="95">${tableInstance3.PACKING}</td>
                <td align="center" width="95">${tableInstance3.GOOD_QTY}</td>
                <td align="center" width="95"></td>
            </g:each>
            <g:each in="${stepInOutPut}" status="j" var="tableInstance">
                <tr>
                    <td align="center" width="95">良品</td>
                    <td align="center" width="95">${tableInstance.DS}</td>
                    <td align="center" width="95">${tableInstance.DB}</td>
                    <td align="center" width="95">${tableInstance.WB1}</td>
                    <td align="center" width="95">${tableInstance.WB2}</td>
                    <td align="center" width="95">${tableInstance.MOLD}</td>
                    <td align="center" width="95">${tableInstance.PMC}</td>
                    <td align="center" width="95">${tableInstance.PLATING}</td>
                    <td align="center" width="95">${tableInstance.TF}</td>
                    <td align="center" width="95">${tableInstance.TEST}</td>
                    <td align="center" width="95">${tableInstance.INSPECTION}</td>
                    <td align="center" width="95">${tableInstance.PACKING}</td>
                    <td align="center" width="95">${tableInstance.GOOD_QTY}</td>
                    <td align="center" width="95"></td>
                </tr>
            </g:each>
            <g:each in="${stepInOutPut2}" status="k" var="tableInstance2">
                <tr>
                    <td align="center" width="95">不良品</td>
                    <td align="center" width="95">${tableInstance2.DS}</td>
                    <td align="center" width="95">${tableInstance2.DB}</td>
            %{--        <td align="center" width="95">${tableInstance2.OVEN}</td>
                    <td align="center" width="95">${tableInstance2.WBSOT}</td>--}%
                    <td align="center" width="95">${tableInstance2.WB1}</td>
                    <td align="center" width="95">${tableInstance2.WB2}</td>
                    <td align="center" width="95">${tableInstance2.MOLD}</td>
                    <td align="center" width="95">${tableInstance2.PMC}</td>
                    <td align="center" width="95">${tableInstance2.PLATING}</td>
                    <td align="center" width="95">${tableInstance2.TF}</td>
                    <td align="center" width="95">${tableInstance2.TEST}</td>
                    <td align="center" width="95">${tableInstance2.INSPECTION}</td>
                    <td align="center" width="95">${tableInstance2.PACKING}</td>
                    <td align="center" width="95">${tableInstance2.NG_QTY}</td>
                    <td align="center" width="95"></td>
                </tr>
            </g:each>
            <g:each in="${stepInOutPut5}" status="k" var="tableInstance5">
                <tr>
                    <td align="center" width="95">期末在制品</td>
                    <td align="center" width="95">${tableInstance5.DS}</td>
                    <td align="center" width="95">${tableInstance5.DB}</td>
               %{--     <td align="center" width="95">${tableInstance5.OVEN}</td>
                    <td align="center" width="95">${tableInstance5.WBSOT}</td>--}%
                    <td align="center" width="95">${tableInstance5.WB1}</td>
                    <td align="center" width="95">${tableInstance5.WB2}</td>
                    <td align="center" width="95">${tableInstance5.MOLD}</td>
                    <td align="center" width="95">${tableInstance5.PMC}</td>
                    <td align="center" width="95">${tableInstance5.PLATING}</td>
                    <td align="center" width="95">${tableInstance5.TF}</td>
                    <td align="center" width="95">${tableInstance5.TEST}</td>
                    <td align="center" width="95">${tableInstance5.INSPECTION}</td>
                    <td align="center" width="95">${tableInstance5.PACKING}</td>
                    <td align="center" width="95">${tableInstance5.FIN}</td>
                    <td align="center" width="95">${tableInstance5.RK}</td>

                </tr>
            </g:each>
            </tbody>
        </table>
    </div>
<div style="margin:10px auto 0; width:100%;">
      <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
          <thead>
          <tr>
              <td  width="95" align="center" name="ageShow">SOT-23</td>
              <th  width="95"  align="center">DS</th>
              <th  width="95" align="center">DB</th>
              <th  width="95"  align="center">OVEN</th>
              <th  width="95"  align="center">WB(SOT-23)</th>
              <th  width="95" align="center">MOLD</th>
              <th  width="95"  align="center">PMC</th>
              <th  width="95"  align="center">Plating</th>
              <th  width="95" align="center">T&F</th>
              <th  width="95"  align="center">TEST</th>
              <th  width="95"  align="center">外观</th>
              <th  width="95" align="center">包装</th>
              <th  width="95" align="center">FIN</th>
             <th  width="95" align="center">入库</th>
          </tr>
          </thead>
          <tbody>
        <g:each in="${stepInOutPut6}" status="i" var="tableInstance6">
            <tr>
                <td align="center" width="95">期初在制</td>  %{--stepInOutPut1--}%
                <td align="center" width="95">${tableInstance6.DS}</td>
                <td align="center" width="95">${tableInstance6.DB}</td>
                <td align="center" width="95">${tableInstance6.OVEN}</td>
                <td align="center" width="95">${tableInstance6.WBSOT}</td>
                <td align="center" width="95">${tableInstance6.MOLD}</td>
                <td align="center" width="95">${tableInstance6.PMC}</td>
                <td align="center" width="95">${tableInstance6.PLATING}</td>
                <td align="center" width="95">${tableInstance6.TF}</td>
                <td align="center" width="95">${tableInstance6.TEST}</td>
                <td align="center" width="95">${tableInstance6.INSPECTION}</td>
                <td align="center" width="95">${tableInstance6.PACKING}</td>
                <td align="center" width="95">${tableInstance6.FIN}</td>
                <td align="center" width="95"></td>
            </tr>
        </g:each>
        <g:each in="${stepInOutPut7}" status="w" var="tableInstance4">
            <tr>
            <td align="center" width="95">前道转入</td>   %{--stepInOutPut4--}%
            <td align="center" width="95">${tableInstance4.DS}</td>
            <td align="center" width="95">${tableInstance4.DB}</td>
            <td align="center" width="95">${tableInstance4.OVEN}</td>
            <td align="center" width="95">${tableInstance4.WBSOT}</td>
            <td align="center" width="95">${tableInstance4.MOLD}</td>
            <td align="center" width="95">${tableInstance4.PMC}</td>
            <td align="center" width="95">${tableInstance4.PLATING}</td>
            <td align="center" width="95">${tableInstance4.TF}</td>
            <td align="center" width="95">${tableInstance4.TEST}</td>
            <td align="center" width="95">${tableInstance4.INSPECTION}</td>
            <td align="center" width="95">${tableInstance4.PACKING}</td>
            <td align="center" width="95">${tableInstance4.last}</td>
            <td align="center" width="95">${tableInstance4.GOOD_QTY}</td>
        </g:each>
        <g:each in="${stepInOutPut8}" status="w" var="tableInstance3">
            <tr>
            <td align="center" width="95">产出</td>   %{--stepInOutPut3--}%
            <td align="center" width="95">${tableInstance3.DS}</td>
            <td align="center" width="95">${tableInstance3.DB}</td>
            <td align="center" width="95">${tableInstance3.OVEN}</td>
            <td align="center" width="95">${tableInstance3.WBSOT}</td>
            <td align="center" width="95">${tableInstance3.MOLD}</td>
            <td align="center" width="95">${tableInstance3.PMC}</td>
            <td align="center" width="95">${tableInstance3.PLATING}</td>
            <td align="center" width="95">${tableInstance3.TF}</td>
            <td align="center" width="95">${tableInstance3.TEST}</td>
            <td align="center" width="95">${tableInstance3.INSPECTION}</td>
            <td align="center" width="95">${tableInstance3.PACKING}</td>
            <td align="center" width="95">${tableInstance3.GOOD_QTY}</td>
            <td align="center" width="95"></td>
        </g:each>
        <g:each in="${stepInOutPut9}" status="j" var="tableInstance9">
            <tr>
                <td align="center" width="95">良品</td>   %{--stepInOutPut--}%
                <td align="center" width="95">${tableInstance9.DS}</td>
                <td align="center" width="95">${tableInstance9.DB}</td>
                <td align="center" width="95">${tableInstance9.OVEN}</td>
                <td align="center" width="95">${tableInstance9.WBSOT}</td>
                <td align="center" width="95">${tableInstance9.MOLD}</td>
                <td align="center" width="95">${tableInstance9.PMC}</td>
                <td align="center" width="95">${tableInstance9.PLATING}</td>
                <td align="center" width="95">${tableInstance9.TF}</td>
                <td align="center" width="95">${tableInstance9.TEST}</td>
                <td align="center" width="95">${tableInstance9.INSPECTION}</td>
                <td align="center" width="95">${tableInstance9.PACKING}</td>
                <td align="center" width="95">${tableInstance9.GOOD_QTY}</td>
                <td align="center" width="95"></td>
            </tr>
        </g:each>
        <g:each in="${stepInOutPut10}" status="k" var="tableInstance2">
            <tr>
                <td align="center" width="95">不良品</td>   %{--stepInOutPut2--}%
                <td align="center" width="95">${tableInstance2.DS}</td>
                <td align="center" width="95">${tableInstance2.DB}</td>
                <td align="center" width="95">${tableInstance2.OVEN}</td>
                <td align="center" width="95">${tableInstance2.WBSOT}</td>
                <td align="center" width="95">${tableInstance2.MOLD}</td>
                <td align="center" width="95">${tableInstance2.PMC}</td>
                <td align="center" width="95">${tableInstance2.PLATING}</td>
                <td align="center" width="95">${tableInstance2.TF}</td>
                <td align="center" width="95">${tableInstance2.TEST}</td>
                <td align="center" width="95">${tableInstance2.INSPECTION}</td>
                <td align="center" width="95">${tableInstance2.PACKING}</td>
                <td align="center" width="95">${tableInstance2.NG_QTY}</td>
                <td align="center" width="95"></td>
            </tr>
        </g:each>
        <g:each in="${stepInOutPut11}" status="k" var="tableInstance5">
            <tr>
                <td align="center" width="95">期末在制品</td>  %{--stepInOutPut5--}%
                <td align="center" width="95">${tableInstance5.DS}</td>
                <td align="center" width="95">${tableInstance5.DB}</td>
                <td align="center" width="95">${tableInstance5.OVEN}</td>
                <td align="center" width="95">${tableInstance5.WBSOT}</td>
                <td align="center" width="95">${tableInstance5.MOLD}</td>
                <td align="center" width="95">${tableInstance5.PMC}</td>
                <td align="center" width="95">${tableInstance5.PLATING}</td>
                <td align="center" width="95">${tableInstance5.TF}</td>
                <td align="center" width="95">${tableInstance5.TEST}</td>
                <td align="center" width="95">${tableInstance5.INSPECTION}</td>
                <td align="center" width="95">${tableInstance5.PACKING}</td>
                <td align="center" width="95">${tableInstance5.FIN}</td>
                <td align="center" width="95">${tableInstance5.RK}</td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>





%{--<script>
    /*  var p1 = document.getElementById("mode");
     var q1 = (p1.options[p1.selectedIndex].text);*/
    $("#mode").change(function () {
        var aaa = $("#mode").val();
        $("td[name='ageShow']").html(aaa);
    })
</script>--}%
